home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: libwhrandom.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text, with CR line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[CR]
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [R*ch] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 53 74 61 6e 64 61 72 |\section|{Standar|
|00000010| 64 20 4d 6f 64 75 6c 65 | 20 5c 73 65 63 74 63 6f |d Module| \sectco|
|00000020| 64 65 7b 77 68 72 61 6e | 64 6f 6d 7d 7d 0d 0d 5c |de{whran|dom}}..\|
|00000030| 73 74 6d 6f 64 69 6e 64 | 65 78 7b 77 68 72 61 6e |stmodind|ex{whran|
|00000040| 64 6f 6d 7d 0d 54 68 69 | 73 20 6d 6f 64 75 6c 65 |dom}.Thi|s module|
|00000050| 20 69 6d 70 6c 65 6d 65 | 6e 74 73 20 61 20 57 69 | impleme|nts a Wi|
|00000060| 63 68 6d 61 6e 6e 2d 48 | 69 6c 6c 20 70 73 65 75 |chmann-H|ill pseu|
|00000070| 64 6f 2d 72 61 6e 64 6f | 6d 20 6e 75 6d 62 65 72 |do-rando|m number|
|00000080| 20 67 65 6e 65 72 61 74 | 6f 72 2e 0d 49 74 20 64 | generat|or..It d|
|00000090| 65 66 69 6e 65 73 20 74 | 68 65 20 66 6f 6c 6c 6f |efines t|he follo|
|000000a0| 77 69 6e 67 20 66 75 6e | 63 74 69 6f 6e 73 3a 0d |wing fun|ctions:.|
|000000b0| 0d 5c 72 65 6e 65 77 63 | 6f 6d 6d 61 6e 64 7b 5c |.\renewc|ommand{\|
|000000c0| 69 6e 64 65 78 73 75 62 | 69 74 65 6d 7d 7b 28 69 |indexsub|item}{(i|
|000000d0| 6e 20 6d 6f 64 75 6c 65 | 20 77 68 72 61 6e 64 6f |n module| whrando|
|000000e0| 6d 29 7d 0d 5c 62 65 67 | 69 6e 7b 66 75 6e 63 64 |m)}.\beg|in{funcd|
|000000f0| 65 73 63 7d 7b 72 61 6e | 64 6f 6d 7d 7b 7d 0d 52 |esc}{ran|dom}{}.R|
|00000100| 65 74 75 72 6e 73 20 74 | 68 65 20 6e 65 78 74 20 |eturns t|he next |
|00000110| 72 61 6e 64 6f 6d 20 66 | 6c 6f 61 74 69 6e 67 20 |random f|loating |
|00000120| 70 6f 69 6e 74 20 6e 75 | 6d 62 65 72 20 69 6e 20 |point nu|mber in |
|00000130| 74 68 65 20 72 61 6e 67 | 65 20 5b 30 2e 30 20 2e |the rang|e [0.0 .|
|00000140| 2e 2e 20 31 2e 30 29 2e | 0d 5c 65 6e 64 7b 66 75 |.. 1.0).|.\end{fu|
|00000150| 6e 63 64 65 73 63 7d 0d | 0d 5c 62 65 67 69 6e 7b |ncdesc}.|.\begin{|
|00000160| 66 75 6e 63 64 65 73 63 | 7d 7b 73 65 65 64 7d 7b |funcdesc|}{seed}{|
|00000170| 78 5c 2c 20 79 5c 2c 20 | 7a 7d 0d 49 6e 69 74 69 |x\, y\, |z}.Initi|
|00000180| 61 6c 69 7a 65 73 20 74 | 68 65 20 72 61 6e 64 6f |alizes t|he rando|
|00000190| 6d 20 6e 75 6d 62 65 72 | 20 67 65 6e 65 72 61 74 |m number| generat|
|000001a0| 6f 72 20 66 72 6f 6d 20 | 74 68 65 20 69 6e 74 65 |or from |the inte|
|000001b0| 67 65 72 73 0d 5c 76 61 | 72 7b 78 7d 2c 0d 5c 76 |gers.\va|r{x},.\v|
|000001c0| 61 72 7b 79 7d 0d 61 6e | 64 0d 5c 76 61 72 7b 7a |ar{y}.an|d.\var{z|
|000001d0| 7d 2e 0d 57 68 65 6e 20 | 74 68 65 20 6d 6f 64 75 |}..When |the modu|
|000001e0| 6c 65 20 69 73 20 66 69 | 72 73 74 20 69 6d 70 6f |le is fi|rst impo|
|000001f0| 72 74 65 64 2c 20 74 68 | 65 20 72 61 6e 64 6f 6d |rted, th|e random|
|00000200| 20 6e 75 6d 62 65 72 20 | 69 73 20 69 6e 69 74 69 | number |is initi|
|00000210| 61 6c 69 7a 65 64 0d 75 | 73 69 6e 67 20 76 61 6c |alized.u|sing val|
|00000220| 75 65 73 20 64 65 72 69 | 76 65 64 20 66 72 6f 6d |ues deri|ved from|
|00000230| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 74 69 6d | the cur|rent tim|
|00000240| 65 2e 0d 5c 65 6e 64 7b | 66 75 6e 63 64 65 73 63 |e..\end{|funcdesc|
|00000250| 7d 0d | |}. | |
+--------+-------------------------+-------------------------+--------+--------+